﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using Data = VietStar.Library.Data;
using Entity = VietStar.Library.Entity;

namespace VietStar.Library.Business
{
    public class ViTriBanner
    {
        public ViTriBanner() { }

        Data.ViTriBanner vitribanner = new Data.ViTriBanner();

        //Thêm vị trí banner
        public bool Insert(Entity.ViTriBanner entity)
        {
            return vitribanner.Insert(entity);
        }
        // Load tất cả vị trí banner
        public DataTable Select()
        {
            return vitribanner.Select();
        }
        //Load vị trí banner theo Id
        public DataTable SelectPrimaryKey(Entity.ViTriBanner entity)
        {
            return vitribanner.SelectPrimaryKey(entity);
        }

        //Load banner theo tên vị trí banner 
        public DataTable SelectByTenViTriBannerTemplates(Entity.ViTriBanner entity)
        {
            return vitribanner.SelectByTenViTriBannerTemplates(entity);
        }
        // Cập nhật vị trí banner
        public bool Update(Entity.ViTriBanner entity)
        {
            return vitribanner.Update(entity);
        }
        // Xóa vị trí banner
        public bool Delete(Entity.ViTriBanner entity)
        {
            return vitribanner.Delete(entity);
        }
    }
}
